-- GENERATED SPELL FOR [Tattered Abomination] --


function spell0_27797(pUnit, Event) --@Scourge Hook,n/a--
pUnit:FullCastSpellOnTarget(50335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27797', 1000, 1)
end

function Sorts_27797(pUnit, Event)
local choix_sorts_27797 = math.random(0, 0)
if choix_sorts_27797 == 0 then
pUnit:RegisterEvent('spell0_27797', 1, 1)
end
end

function mob27797_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27797', math.random(1500, 3000), 1)
end

function mob27797_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27797_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27797_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27797, 1, 'mob27797_Action')
RegisterUnitEvent(27797, 2, 'mob27797_Leave')
RegisterUnitEvent(27797, 3, 'mob27797_Kill')
RegisterUnitEvent(27797, 4, 'mob27797_Die')
